package cn.cttic.order.api.domain.bo;

import cn.cttic.order.api.domain.BaseInstallOrder;
import cn.cttic.common.mybatis.core.domain.BaseEntity;
import cn.cttic.common.core.validate.AddGroup;
import cn.cttic.common.core.validate.EditGroup;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 安装订单业务对象 base_install_order
 *
 * @author Times.Studio
 * @date 2024-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseInstallOrder.class, reverseConvertGenerate = false)
public class BaseInstallOrderBo extends BaseEntity {

    /**
     * 标识
     */
    @NotBlank(message = "标识不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 销售订单
     */
    @NotBlank(message = "销售订单不能为空", groups = { AddGroup.class, EditGroup.class })
    private String saleOrderId;

    /**
     * 客户车牌号
     */
    private String imei;

    /**
     * 客户车牌号
     */
    @NotBlank(message = "客户车牌号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carNo;

    /**
     * 安装码
     */
    @NotBlank(message = "安装码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String installCode;

    /**
     * 二维码地址
     */
    @NotBlank(message = "二维码地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String installUrl;

    /**
     * 安装人员
     */
    @NotBlank(message = "安装人员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String installManId;

    /**
     * 通知短信
     */
    @NotBlank(message = "通知短信不能为空", groups = { AddGroup.class, EditGroup.class })
    private String noticeSmsId;

    /**
     * 通知状态
     */
    @NotNull(message = "通知状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer noticeStatus;

    /**
     * 订单状态
     */
    @NotNull(message = "订单状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 安装状态
     */
    @NotNull(message = "安装状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer installStatus;

    /**
     * 激活状态
     */
    @NotNull(message = "激活状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer activeStatus;

    /**
     * 验收状态
     */
    @NotNull(message = "验收状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer verifyStatus;

    /**
     * 验收状态
     */
    private Integer checkStatus;

    /**
     * 签收用户
     */
    private Long receivedUserId;

    /**
     * 激活时间
     */
    private LocalDateTime startTime;

    /**
     * 提交类型
     */
    private String startType;

    /**
     * 提交时间
     */
    private LocalDateTime submitTime;

    /**
     * 激活时间
     */
    private LocalDateTime onlineTime;

    /**
     * 激活时间
     */
    private LocalDateTime lastOnlineTime;

    /**
     * 激活时间
     */
    private LocalDateTime activeTime;

    /**
     * 激活时间
     */
    private LocalDateTime verifyTime;

    /**
     * 激活时间
     */
    private LocalDateTime checkTime;

    /**
     * 签收时间
     */
    private LocalDateTime receivedTime;

    private String onlineInterfaceId;

    private String activeInterfaceId;
}
